// ------------------------------------------------------ Naming ------------------------------------------------------
Name Dassault Mirage F1
ShortName Mirage_F1
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmiragef1
Model faf.miragef1
Texture miragef1
//Third Person Camera Distance
CameraDistance 18.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.85
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.85
TurnRightSpeed 1.85
//Pitch modifiers
LookUpSpeed 0.78
LookDownSpeed 0.78
//Roll modifiers
RollLeftSpeed 1.58
RollRightSpeed 1.58
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.0
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -46 -10 -26
WheelPosition 1 -46 -10 26
WheelPosition 2 67 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 0 0 0 core Repair
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary Bomb
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ShootDelaySecondary 10
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary SemiAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary -35 31 -87 leftWing
ShootPointPrimary -35 31 87 rightWing
ShootPointSecondary -52 20 -56 leftWing
ShootPointSecondary -46 20 -44 leftWing
ShootPointSecondary -52 20 56 rightWing
ShootPointSecondary -52 20 56 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo True
AddAmmo AIM4
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 65 20 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HarrierIdle
StartSoundLength 140
PropSound JetEngine2
PropSoundLength 47
ShootSoundPrimary MissileShoot
ShootSoundSecondary bomb
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 128 14 -9 37 17 18
SetupPart core 100 69 14 -10 59 32 20
SetupPart core 100 -20 12 -10 89 34 20
SetupPart core 100 -20 14 -21 103 28 11
SetupPart core 100 -20 14 10 103 28 11
SetupPart tail 100 -163 12 -10 143 34 20
SetupPart tail 100 -157 14 -17 137 28 7
SetupPart tail 100 -157 14 10 137 28 7
SetupPart tail 100 -171 46 -2 120 48 4
SetupPart tail 100 -133 6 -4 97 6 8
SetupPart bay 100 -47 -2 -6 96 14 12
SetupPart leftWing 100 -114 20 -91 137 5 74
SetupPart rightWing 100 -115 20 17 137 5 74

BulletDetection 4

BulletSpeed 5

CollisionPoint 165 21 0 nose
CollisionPoint 141 21 0 nose
CollisionPoint 83 21 0 core
CollisionPoint 14 21 0 core
CollisionPoint 29 21 -15 core
CollisionPoint 29 21 15 core
CollisionPoint -108 21 0 tail
CollisionPoint -82 21 -15 tail
CollisionPoint -82 21 15 tail
CollisionPoint -153 83 0 tail
CollisionPoint -13 3 0 bay
CollisionPoint -71 24 -36 leftWing
CollisionPoint -94 23 -69 leftWing
CollisionPoint -71 24 36 rightWing
CollisionPoint -94 23 69 rightWing

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 50

hasPlaneRadar true
radarPositionOffset 20
radarRange 850
radarVisible true 
radarRefreshDelay 20

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 150
ReloadSoundSecondary PlaneBomb_reload1

EngineSoundRange 1000

AddEmitter flansmod.fmsmoke 1 [-159,30,0] [1,1,1] [-4,0,0] 0.5 0.8 0 1 tail
AddEmitter flansmod.fmflame 1 [-159,30,0] [3,1,1] [-1,0,0] 0.5 0.8 0 1 tail